import request from '@/utils/http'

// export const miniLogin = (params: any) => {
//   return request.get({
//     url: '/patient/hp-user/mini/login',
//     data: params
//   })
// }
// export const getPatient = (params: any) => {
//   return request.post({
//     url: '/patient/hp-patient/get_patient',
//     data: params
//   })
// }
// 根据empi查询处方信息
export const infoGet = (params: any) => {
  return request.get({
    url: '/api/prescription/info/get/' + params
    // data: params
  })
}
// 获取全部用药信息字典
export const infoAll = (params: any) => {
  return request.get({
    url: '/api/drug/info/all',
    data: params
  })
}
//获得频次字典
export const frequency = (params: any) => {
  return request.get({
    url: '/api/drug/info/frequency',
    data: params
  })
}
//获得单位字典
export const infoUnit = (params: any) => {
  return request.get({
    url: '/api/drug/info/unit',
    data: params
  })
}
//用药信息录入
export const infoSave = (params: any) => {
  return request.post({
    url: '/api/drug/info/save',
    data: params
  })
}
//查询体征信息
export const signsInfoList = (params: any) => {
  return request.post({
    url: '/api/signs/info/list',
    data: params
  })
}
//查询体征信息
export const drugInfoGet = (params: any) => {
  return request.get({
    url: '/api/drug/info/get/' + params
  })
}
//获得单位字典
export const healthInfoAll = (params: any) => {
  return request.get({
    url: '/api/signs/info/all/' + params
    // data: params
  })
}
//保存健康信息
export const healthInfoSave = (params: any) => {
  return request.post({
    url: '/api/signs/info/save',
    data: params
  })
}
//查询体征信息-时间分组
export const healthInfoMapList = (params: any) => {
  return request.post({
    url: '/api/signs/info/map',
    data: params
  })
}
//查询体征信息-时间分组
export const healthInfoUpdate = (params: any) => {
  return request.post({
    url: '/api/signs/info/update',
    data: params
  })
}

//查询支付订单
export const paying = (params: any) => {
  return request.post({
    url: '/api/pay/order/paying',
    data: params
  })
}

//根据empi查询任务拆分
export const taskDetail = (params: any) => {
  return request.get({
    url: '/api/task/detail/get/' + params
  })
}

//管理方案已读未读
export const readDetail = (params: any) => {
  return request.post({
    url: '/api/task/detail/is/read',
    data: params
  })
}

//查看任务详情
export const taskDetailInfo = (params: any) => {
  return request.get({
    url: '/api/task/detail/get/info/' + params
  })
}

//查看任务详情
export const taskAllDate = (params: any) => {
  return request.get({
    url: '/api/task/detail/get/all/date/' + params
  })
}

//提交申请
export const submitOrderApply = (params: any) => {
  return request.post({
    url: '/api/hepgreenwayorder/submitOrderApply',
    data: params
  })
}

//提交申请
export const hepgreenwayorderList = (params: any) => {
  return request.get({
    url: '/api/hepgreenwayorder/list/' + params
  })
}

//资讯 知识库标签字典
export const articleType = () => {
  return request.get({
    url: '/api/task/detail/get/article/type'
  })
}

//资讯 获取健康宣教文章
export const educationInfo = (params: any) => {
  return request.get({
    url: '/api/task/detail/education/info/' + params
  })
}

//查询商品信息
export const getProduct = () => {
  return request.get({
    url: '/api/pay/order/get-product'
  })
}

//查询支付订单
export const orderStatus = (params: any) => {
  return request.get({
    url: '/api/pay/order/status/' + params
  })
}

//查询支付订单列表
export const orderList = (params: any) => {
  return request.get({
    url: '/api/pay/order/list/' + params
  })
}

//会员信息
export const memberInfo = (params: any) => {
    return request.get({
      url: '/api/member/info/' + params
    })
}

//根据订单号支付
export const payByOrderNo = (params: any) => {
    return request.post({
        url: '/api/pay/order/payByOrderNo',
        data: params
      })
}